<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <f:view contentType="text/html" id="fview">
        <h:form>
            <p:accordionPanel id="acordeonId" var="menu" value="#{menuBean.opcionesLista}" activeIndex="#{menuBean.tabActual}">
               <p:ajax event="tabChange" listener="#{menuBean.onTabChange}" />
                <p:tab id="menuTab" title="#{menu.nombre}">   
                    <ui:repeat value="#{menu.menuList}" var="hoja">
                        <h:commandLink value="#{hoja.nombre}" action="#{menuBean.getPagina(hoja.prgCodigo.nombre)}"   /> 
                        <p:separator />
                    </ui:repeat>
                </p:tab>
            </p:accordionPanel>  
        </h:form>
    </f:view>
</html>